package com.qingke.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qingke.mapper.UploadFileMapper;
import com.qingke.pojo.UploadFile;
import com.qingke.service.UploadFileService;
@Service("uploadFileService")
public class UploadFileServiceImpl implements UploadFileService {
	@Resource
	private UploadFileMapper ufDao;

	public int saveUploadFile(UploadFile record) {
		return ufDao.insertSelective(record);
	}

	public int softDelete(int id) {
		return ufDao.softDelete(id);
	}

	public UploadFile getUploadFileById(int id) {
		return ufDao.selectByPrimaryKey(id);
	}

	public List<UploadFile> listUploadFileByUploaderNumber(String uploaderNumber) {
		return ufDao.listUploadFileByUploaderNumber(uploaderNumber);
	}

}
